package com.zelin.service.impl;

import com.zelin.dao.StudentDao;
import com.zelin.dao.impl.StudentDaoImpl;
import com.zelin.pojo.Student;
import com.zelin.service.StudentService;

import java.sql.SQLException;
import java.util.List;

/**
 * @Auther zxh
 * @Date 2020/9/28下午 4:37
 */
public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao = new StudentDaoImpl();
    @Override
    public List<Student> query() throws SQLException {
        return studentDao.query();
    }

    @Override
    public void insert(Student student) throws SQLException {
        studentDao.insert(student);
    }
}
